]> dgit.raspbian.org Git - gnome-shell.git/commit
workspacesView: Derive workspace mode from overview state
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sat, 2 Jan 2021 19:06:34 +0000 (16:06 -0300)
committerMarge Bot <marge-bot@gnome.org>
Thu, 11 Feb 2021 15:50:31 +0000 (15:50 +0000)
commitd221215ab6c2efb6d152389178d0a9da0fcef6b0
tree6f6bb28e54ab624b436388ad94a60fbfb9ca17e6
parent741d6abb9756bb0a37c3eded9b9ea37d88feb3c0
workspacesView: Derive workspace mode from overview state

WorkspacesView uses the floating layout when the overview is in window
picker mode, and the session layout when the overview is in app grid
mode. Up until now, the fit mode adjustment was used to derive the
workspace mode, but it is incomplete as it doesn't have the full range
of workspace states.

Make ViewSelector cascade the overview adjustment to WorkspacesDisplay,
and use the overview adjustment itself to derive the workspace mode.

Extra workspaces don't have to account for the fit mode, and thus are
basically a clamp(state, 0, 1) of the overview state. However, don't
call animateTo/FromOverview() anymore, since they ease the workspace
mode adjustment.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1624>
js/ui/viewSelector.js
js/ui/workspacesView.js